package Commander;

/**
 * @author Charles Huang <br>
 * Major Major's legal name is Major Major Major, and someone in the
 * top brass with a twisted sense of humor promoted him from 2nd Lieutenant
 * to Major in one fell swoop, adding a fourth Major to his name.
 * Major Major is cursed with an unfortunate mediocrity; he is not
 * incompetent, but not particularly talented either, or so it would seem.
 * His dream is to be promoted to a Kolonel or be demoted to a Captain, but
 * neither has happened yet. Occasionally, the Major can rise above
 * his mediocrity and show sporadic displays of tactical brilliance, 
 * though no one seems to have noticed.
 */
public class MajorMajor extends Commander
{
	public MajorMajor()
	{
		super("Major Major", 1500, 0, 1.0, 1.0);
	}
	
	/**
	 * Major Major's power allows him to rise above the mediocrity,
	 * granting a 25% offensive and defensive boost to all units under
	 * his command.
	 */
	public void activatePower()
	{
		super.activatePower();
		setAttackMod(1.25);
		setDefenseMod(0.75);
	}
	
	public void deactivatePower()
	{
		super.deactivatePower();
		setAttackMod(1.0);
		setDefenseMod(1.0);
	}
}
